home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm2 / crshtk10.lha / CrashTick / Install < prev    next >
Text File  |  1996-05-11  |  5KB  |  234 lines

  1. ; Installation script for CrashTick
  2.  
  3. (set reqtoolslib "libs/reqtools.library")
  4. (set gtlayoutlib "libs/gtlayout.library")
  5.  
  6. ; make sure we are running under at least Kickstart 2.04
  7.  
  8. (if (< (/ (getversion) 65536) 37)
  9. (
  10.     (abort "Sorry, you need at least Workbench 2.04 to use CrashTick")
  11. ))
  12.  
  13. (complete 0)
  14.  
  15. (message "\nWelcome to the CrashTick installation script.\n\n"
  16.          "CrashTick is a file echo handler ('tick program') "
  17.          "for FidoNet and all other nets using the same technology.\n\n"
  18.          "Please read CrashTick.guide for more information.\n\n"
  19.          "CrashTick is Copyright 1996 Johan Billing.\n\n")
  20.  
  21. (copylib
  22.     (prompt "Copying gtlayout.library...")
  23.     (help "CrashTickPrefs needs this library for the "
  24.           "user interface. If you don't install "
  25.           "gtlayout.library, you will not be able "
  26.           "to use CrashTickPrefs. ")
  27.     (source gtlayoutlib)
  28.     (dest "Libs:")
  29.     (confirm)
  30. )
  31.  
  32. (complete 20)
  33.  
  34. (copylib
  35.     (prompt "Copying reqtools.library...\n\n"
  36.             "Only the main library file is included in the CrashTick archive. "
  37.             "If you want to use ReqTools in your local language or use the "
  38.             "ReqTools settings program, you need to get the complete ReqTools "
  39.             "archive.")
  40.  
  41.     (help "CrashTickPrefs needs this library for "
  42.           "its requesters If you don't install "
  43.           "reqtools.library, you will not be able "
  44.           "to use CrashTickPrefs. ")
  45.  
  46.     (source reqtoolslib)
  47.     (dest "Libs:")
  48.     (confirm)
  49. )
  50.  
  51. (complete 40)
  52.  
  53. ; Ask for destination directory
  54.  
  55. (set destdir
  56.    (askdir
  57.       (prompt "Please select the directory where you want to install CrashTick. "
  58.                "This script will not create a directory, the files will be put "
  59.                "in the directory that you select here ")
  60.       (help "")
  61.       (default "RAM:")
  62.    )
  63. )
  64.  
  65. (set @default-dest destdir)
  66.  
  67. ; Copy the main files
  68.  
  69. (set prgbitmap
  70.   (askoptions
  71.     (prompt "Which parts of the archive do you want to copy?")
  72.     (help   "Just select the files you want to copy.\n\n"
  73.             "CrashTick            Main program\n"
  74.             "CrashTick.guide      Documentation\n"
  75.             "CrashTickPrefs       Settings program\n"
  76.             "CrashTickStats       Statistics display program\n"
  77.             "RaidHelp.doc         Helpfile for the Raid\n"
  78.             "TickStatsFormat.doc  Format of the statistics file\n")
  79.  
  80.     (choices "CrashTick"
  81.              "CrashTick.guide"
  82.              "CrashTickPrefs"
  83.              "CrashTickStats"
  84.              "RaidHelp.doc"
  85.              "TickStatsFormat.doc")
  86.  
  87.     (default 63)
  88.   )
  89. )
  90.  
  91. (if (BITAND prgbitmap 1)
  92.    (copyfiles
  93.       (prompt "")
  94.       (help "")
  95.        (source "CrashTick")
  96.        (dest destdir)
  97.        (infos)
  98.    )
  99. )
  100.  
  101. (if (BITAND prgbitmap 2)
  102.    (copyfiles
  103.       (prompt "")
  104.       (help "")
  105.        (source "CrashTick.guide")
  106.        (dest destdir)
  107.        (infos)
  108.    )
  109. )
  110.  
  111. (if (BITAND prgbitmap 4)
  112.    (copyfiles
  113.       (prompt "")
  114.       (help "")
  115.        (source "CrashTickPrefs")
  116.        (dest destdir)
  117.        (infos)
  118.    )
  119. )
  120.  
  121. (if (BITAND prgbitmap 8)
  122.    (copyfiles
  123.       (prompt "")
  124.       (help "")
  125.        (source "CrashTickStats")
  126.        (dest destdir)
  127.        (infos)
  128.    )
  129. )
  130.  
  131. (if (BITAND prgbitmap 16)
  132.    (copyfiles
  133.       (prompt "")
  134.       (help "")
  135.        (source "RaidHelp.doc")
  136.        (dest destdir)
  137.        (infos)
  138.    )
  139. )
  140.  
  141. (if (BITAND prgbitmap 32)
  142.    (copyfiles
  143.       (prompt "")
  144.       (help "")
  145.        (source "TickStatsFormat.doc")
  146.        (dest destdir)
  147.        (infos)
  148.    )
  149. )
  150.  
  151. (complete 60)
  152.  
  153. (if (exists "SYS:Locale")
  154.   (
  155.      (set lang
  156.        (askoptions
  157.          (prompt "Which languages do you want to install?")
  158.          (help "The default language is english.")
  159.          (choices
  160.            "Svenska")
  161.          (default 0)
  162.        )
  163.      )
  164.  
  165.      (if (not (= lang 0))
  166.        (
  167.          (set destplace
  168.            (askchoice
  169.              (prompt "Which languages do you want to install?")
  170.              (help "This is where the catalog files will be installed.")
  171.              (choices
  172.                "PROGDIR:Catalogs"
  173.                "LOCALE:Catalogs" )
  174.              (default 0)
  175.            )
  176.          )
  177.  
  178.          (if (= destplace 0) (set basepath (tackon destdir "Catalogs")))
  179.          (if (= destplace 1) (set basepath "LOCALE:Catalogs"))
  180.        )
  181.      )
  182.  
  183.      (set n 0)
  184.  
  185.      (while (set language
  186.             (select n
  187.              "svenska"
  188.              "")
  189.             )
  190.  
  191.         (
  192.           (if (IN lang n)
  193.           (
  194.              (if (<> "english" language)
  195.              (
  196.                     (makedir (tackon basepath language))
  197.                     (copyfiles
  198.                       (source (tackon (tackon "Catalogs" language) "CrashTick.catalog"))
  199.                       (dest (tackon basepath language)))
  200.                   )
  201.                 )
  202.               )
  203.             )
  204.             (set n (+ n 1))
  205.           )
  206.         )
  207.  
  208.      )
  209.   )
  210.  
  211. (complete 80)
  212.  
  213. (if
  214.     (askbool
  215.         (prompt "Do you want to copy the included ARexx scripts?")
  216.         (help "Some ARexx scripts are included with CrashTick. They "
  217.               "are small programs that might be useful to you...")
  218.         (default 1)
  219.     )
  220.     (
  221.         (copyfiles
  222.             (source "Rexx")
  223.             (dest (tackon destdir "Rexx"))
  224.             (all)
  225.          (infos)
  226.         )
  227.     )
  228. )
  229.  
  230. (complete 100)
  231.  
  232. (message "CrashTick is now installed. Now you should "
  233.          "start CrashTickPrefs to configure CrashTick")
  234.